<template>
  <section
    class="goods-discount"
    v-if="showGoodsDiscount"
    :style="outModuleCss"
  >
    <div :style="moduleBgCss" class="module-bg"></div>
    <section class="discount-section">
      <div class="discount-row-item coupon">
        <div class="row-label">优惠</div>
        <div class="row-content">
          <div class="content-body">
            <div class="remark-box">
              <span>白条新人</span>
            </div>
            <div class="discount-text">领立减60元优惠券，及12期免息券</div>
            <i class="iconfont icon-arrow-right"></i>
          </div>
        </div>
      </div>
      <div class="split-line"></div>
      <div class="discount-row-item row-last">
        <div class="row-label">活动</div>
        <div class="row-content">
          <div class="content-body">
            <div class="remark-box blue-box"><span>高价回收限时加价</span></div>
            <div class="discount-text">高价回收，极速到账</div>
            <i class="iconfont icon-arrow-right"></i>
          </div>
        </div>
      </div>
    </section>
  </section>
</template>

<script>
import { mixinsModuleCss } from "@/components/DiyNew/diy/mixins/index.js";

export default {
  name: "",
  props: {
    propsData: {
      type: Object,
      default: {},
    },
  },
  mixins: [mixinsModuleCss],
  components: {},
  data() {
    return {};
  },
  mounted() {},
  watch: {},
  computed: {
    showGoodsDiscount() {
      return this.propsData.params.showGoodsDiscount;
    },
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.goods-discount {
  width: 100%;
  position: relative;
  font-family: PingFang SC;
  .discount-section {
    width: 100%;
    padding: 18px 0 18px 18px;
    .discount-row-item {
      width: 100%;
      display: flex;
      align-items: center;
      padding-bottom: 18px;
      .row-label {
        width: 41px;
        font-size: 13px;
        font-weight: 600;
        color: #262626;
      }
      .row-content {
        flex: 1;
        width: 94.3%;
        .content-body {
          width: 100%;
          display: flex;
          align-items: center;
          padding-right: 18px;
          .remark-box {
            padding: 1px 4px 0;
            height: 13px;
            background: #fee9e6;
            border-radius: 2px;
            display: flex;
            align-items: center;
            span {
              transform: scale(0.8);
              font-size: 12px;
              height: 12px;
              line-height: 12px;
              color: #f1270c;
              display: block;
            }
          }
          .blue-box {
            border: 1px solid #5a91fe;
            background: #ffffff;
            span {
              color: #5a91fe;
            }
          }
          .discount-text {
            flex: 1;
            padding-left: 14px;
            font-size: 13px;
            font-weight: 400;
            color: #262626;
          }
          .iconfont {
            font-size: 15px;
            color: #000000;
          }
        }
      }
    }
    .coupon {
      .row-content {
        width: 94.3%;
        .content-body {
          .discount-text {
            padding-left: 14 px;
            font-size: 13px;
            font-weight: 400;
            color: #262626;
            overflow: hidden;
            width: 74.48%;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
        }
      }
    }
    .row-last {
      padding-bottom: 0;
      padding-top: 18px;
    }
    .split-line {
      width: 88.5%;
      height: 1px;
      background: #f6f6f6;
      float: right;
    }
  }
  .module-bg {
    width: 100%;
    height: 100%;
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
  }
}
</style>
